mmc: dw_mmc: Avoid using printf() for errors
authorSimon Glass <[email protected]>
Fri, 7 Aug 2015 02:16:27 +0000 (20:16 -0600)
committerPantelis Antoniou <[email protected]>
Tue, 11 Aug 2015 18:52:43 +0000 (21:52 +0300)
commit1c87ffe8d1eef2c759b97129fd48e218a039cbcd
treec9124f3fc146c0477c78aff89f89151e75232c43
parent9042d974d2391b58d9a51f805756fac31f3c656f
mmc: dw_mmc: Avoid using printf() for errors

The dw_mmc driver uses printf() in various places.

These bloat the code and cause problems for SPL. Use debug() where possible
and try to return a useful error code instead.

panto: Small rework to make it apply against top of tree.

Signed-off-by: Simon Glass <[email protected]>
Signed-off-by: Pantelis Antoniou <[email protected]>
Acked-by: Jaehoon Chung <[email protected]>
drivers/mmc/dw_mmc.c